//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    imgUrls: [
      '/images/swaper3.jpg',
      '/images/swaper2.jpg',
      '/images/swaper1.jpg'
    ],
    indicatorDots: false,
    autoplay: false,
    interval: 5000,
    duration: 1000,
    ProList:[
      {
        logo:"/images/logo1.jpg",
        title:"伟大的母爱",
        desc:"母爱常被描绘成母亲对子女的恩情，是无私的、伟大的。"
      },
      {
        logo: "/images/logo2.jpg",
        title: "大学生活应当怎么过？",
        desc: "从中学步入大学，同学们都抱着期待与幻想。那么如何完美的度过大学生活？"
      },
      {
        logo: "/images/logo3.jpg",
        title: "游戏，是好是坏？",
        desc: "电子游戏是休闲娱乐的好方式，却也让无数年轻人深陷其中。如何正确面对游戏？"
      }
    ]
  },
  gotoWords: function (e) {
    var index = e.currentTarget.dataset.index;
    if(index==1){
      wx.navigateTo({
        url: '../Words1/Words1'
      })
    }
    if (index == 2) {
      wx.navigateTo({
        url: '../Words2/Words2'
      })
    }
    if (index == 0) {
      wx.navigateTo({
        url: '../Words0/Words0'
      })
    }
  },
  onLoad: function () {
   
    
  },

})
